package com.relytosoft.mizar.media.analyze.services.service.system.impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.relytosoft.mizar.media.analyze.api.entity.system.AyPersonFace;
import com.relytosoft.mizar.media.analyze.services.mapper.system.AyPersonFaceMapper;
import com.relytosoft.mizar.media.analyze.services.service.system.AyPersonFaceService;
import org.springframework.stereotype.Service;

/**
 * @author lj
 * @date 2022/5/12 11:48
 */
@Service
public class AyPersonFaceServiceImpl extends ServiceImpl<AyPersonFaceMapper, AyPersonFace> implements AyPersonFaceService {

    @Override
    public AyPersonFace selectByPersonId(Integer personId) {
        LambdaQueryWrapper<AyPersonFace> wrapper = new QueryWrapper<AyPersonFace>().lambda();
        wrapper.eq(AyPersonFace::getPersonId,personId);
       return this.getOne(wrapper);
    }
}